<template>
  <!-- 添加或修改岗位对话框 -->
  <el-descriptions :title="title" :column="column" border>
    <el-descriptions-item
      v-for="(item, index) in data"
      :key="index"
      :label="item.label"
    >
      {{ item.value || "--" }}
    </el-descriptions-item>
  </el-descriptions>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
  column: {
    type: Number,
    default: 3,
  },
  data: {
    type: Object,
    default: () => {},
  },
});
</script>
